<template>
  <div>
    <h1>评论</h1>
  </div>
</template>

<style scoped>
</style>

<script>
import { editUser } from "@/api/user";
export default {
  data() {
    return {
      ruleForm: {
        id: localStorage.getItem("UID"),
        email: localStorage.getItem("NAME"),
        avatar: null,
      },
      rules: {},
    };
  },
  mounted() {
    this.getUserInfo();
  },
  methods: {
    getUserInfo() {
      this.ruleForm = this.$store.getters.GetUserInfo;
    },
    handleEdit() {
      editUser(this.ruleForm).then((res) => {
        console.log(res);
      });
    },
  },
};
</script>
